<!DOCTYPE html>
<html>

<head>

    <meta charset="utf-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>H+ 后台主题UI框架 - 空白页</title>
    <meta name="keywords" content="">
    <meta name="description" content="">

    <link rel="shortcut icon" href="__STATIC__/layout/favicon.ico"> 
    <link href="__STATIC__/layout/css/bootstrap.min.css?v=3.3.6" rel="stylesheet">
    <link href="__STATIC__/layout/css/font-awesome.css?v=4.4.0" rel="stylesheet">
     <!-- jqgrid-->
    <link href="__STATIC__/layout/css/animate.css" rel="stylesheet">
    <link href="__STATIC__/layout/css/style.css?v=4.1.0" rel="stylesheet">
    <link href="__STATIC__/layout/css/plugins/sweetalert/sweetalert.css" rel="stylesheet">
    <link href="__STATIC__/layout/css/gyq.css" rel="stylesheet">
    <link rel="stylesheet" href="__STATIC__/layout/css/demo.css" type="text/css">
</head>

<body style="color:#333;padding:3px;">
    <!-- 标题 -->
    <div class="page-heade clearfix">
      <h2 class="clearfix text-center"><a class="col-md-6 title_color H_right H_active" id="Ap1" style="display: inline-block;font-size: 16px" onclick="tiaozhuan(1)">我的销售物料使用申请</a> <a class="col-md-6 title_color"  id="Ap2" style="color:#333;font-size: 16px;display: inline-block;" onclick="tiaozhuan(2)">我的销售物料使用明细查询</a></h2>
    </div>
    <!-- 标题 -->
    <div>
    <form action="" class="form-inline">
      <div class="ibox-content" style="padding: 8px"><a href="sell_wl_apply.html" class="btn-info btn">新增销售物料使用申请</a></div>
      <table class="tab-content table-bordered table" border="1">
          <tr>
            <td style="min-width: 120px;width: 120px"><label for="" class="form-label">编号：</label></td>
            <td><input type="text" class="form-control" name=""></td>
			      <td style="min-width: 120px;width: 120px"><label for="" class="form-label">主题：</label></td>
            <td><input type="text" class="form-control" name=""></td>
             <td style="min-width: 120px;width: 120px"><label for="" class="form-label">申请状态：</label></td>
            <td>
              <select name="" id="" class="form-control">
                  <option value="0">请选择</option>
                  <option value="1">草稿</option>
                  <option value="2">业务员审批</option>
                  <option value="3">已打回</option>
                  <option value="4">区域领导审批</option>
                  <option value="5">拆分人审批</option>
                  <option value="6">集团领导审批</option>
                  <option value="7">抄送</option>
                  <option value="8">已归档</option>
                  <option value="9">已作废</option>
                  <option value="10">已否决</option>
              </select>
            </td>
		</tr>
		<tr>
         	<td style="min-width: 120px;width: 120px"><label for="" class="form-label">申请日期：</label></td>
            <td colspan="5">
             <div class="form-group">
            <input type="text" id="start" class="form-control layer-date " style="min-width:100px;display: inline-block;" name="">
           </div>
            <div class="form-group">
                到
            </div>
           <div class="form-group">
            <input type="text" class="form-control layer-date" style="min-width:100px;display: inline-block;" id="end" name="">
           </div>
            </td>
          </tr>
          <tr>
			 <td colspan="6" class="text-center">
           <button class="btn btn-info query" >查询</button>
           <button class="btn btn-info emptyIf" type="button">清空查询条件</button>
           <button class="btn btn-info lendExcel" type="button">导出Excel</button>
            </td>
          </tr>
      </table>
    
      <table class="table row-margin-top table-bordered text-center bud_hei">
          <tr class="info">
            <th class="text-center">No.</th>
            <th class="text-center">编号</th>
            <th class="text-center">主题</th>
            <th class="text-center">使用对象</th>
            <th class="text-center">总价</th>
            <th class="text-center">申请状态</th>
            <th class="text-center">申请人</th>
            <th class="text-center">申请时间</th>
            <th class="text-center">操作</th>
          </tr>
          <tbody>
            <tr>
              <td>1</td>
              <td><a href="sell_wl_applydetal.html">201711300005</a></td>
              <td class="text-left">123ds</td>
              <td>123ds</td>
              <td class="ObjectNum text-right">0</td>
              <td>草稿</td>
              <td>测试经理</td>
              <td>2017-03-23</td>
              <td><a href="javascript:;">提交工作流</a>&nbsp;<a href="sell_wl_apply_modify.html">修改</a>&nbsp;<a href="javascript:;" class="dethis">删除</a></td>
            </tr>
          </tbody>
      </table>
        <h5 class="text-center">
            总共有1条记录，第1/4页，当前页：<input id="page" type="text" style="width: 70px;" value="" class="form-control" /><span id="gopage">GO</span>&nbsp;&nbsp;<span id="fistpage">首页</span>&nbsp;&nbsp; 每页显示
            <select id="pagesize" style="width: 70px" class="form-control">
            <option value='5'>5</option>
            <option value='10'>10</option>
          </select>条
        </h5>

</form>
    </div>
    <!-- 全局js -->
    <script src="__STATIC__/layout/js/jquery.min.js?v=2.1.4"></script>
    <script src="__STATIC__/layout/js/bootstrap.min.js?v=3.3.6"></script>
    <!-- <script src="js/plugins/metisMenu/jquery.metisMenu.js"></script> -->
    <script src="__STATIC__/layout/js/plugins/slimscroll/jquery.slimscroll.min.js"></script>
    <!--统计代码，可删除-->
    <script src="__STATIC__/layout/js/plugins/layer/laydate/laydate.js"></script>
    <script src="__STATIC__/layout/js/common.js"></script>
    <script>
      function tiaozhuan(num){
        var a = document.getElementById('Ap'+num);
          a.href="my_sell_wl_apply"+num+".html";
      }
      
        //日期范围限制
        var start = {
            elem: '#start',
            format: 'YYYY/MM/DD',
            min: laydate.now(), //设定最小日期为当前日期
            max: '2099-06-16 23:59:59', //最大日期
            istime: true,
            istoday: false,
            choose: function (datas) {
                end.min = datas; //开始日选好后，重置结束日的最小日期
                end.start = datas //将结束日的初始值设定为开始日
            }
        };
        var end = {
            elem: '#end',
            format: 'YYYY/MM/DD',
            min: laydate.now(),
            max: '2099-06-16 23:59:59',
            istime: true,
            istoday: false,
            choose: function (datas) {
                start.max = datas; //结束日选好后，重置开始日的最大日期
            }
        };
        laydate(start);
        laydate(end);
        $(document).ready(function(){
        	var $ObjectNum =$(".ObjectNum");
        	   toNum($ObjectNum);

          /*删除操作*/
          $(document).on("click",".dethis",function(){
               var is_ok=confirm("确定删除该条信息？")
               if(is_ok==true){
                 $(this).parent().parent().remove()
               }else{
                return false;
               }
          })
        })
    </script>
</body>

</html>
